package com.whalehearing.tingyou.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whalehearing.tingyou.common.annotation.Excel;
import com.whalehearing.tingyou.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 听力档案对象 hearing_audiogram
 *
 * @author zengjun-qxm
 * @date 2024-09-13
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("hearing_audiogram")
@ApiModel(value = "HearingAudiogram", description = "听力档案实体")
public class HearingAudiogram extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 听力档案id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("听力档案id")
    private Long audiogramId;

    /**
     * 测前初评ID
     */
    @Excel(name = "测前初评ID")
    @ApiModelProperty("测前初评ID")
    private Long initialValuationId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @ApiModelProperty("用户ID")
    private Long userId;

    /**
     * 检测类型：1简单检测，2专业检测，3上传听力图
     */
    @Excel(name = "检测类型")
    @ApiModelProperty("检测类型")
    private Integer testType;

    /**
     * 是否删除 0未删除 1已删除
     */
    @ApiModelProperty("是否删除 0未删除 1已删除")
    private Integer isDeleted;

    /* ---------------------非数据库字段 */
    /**
     * 昵称
     */
    @Excel(name = "昵称")
    @ApiModelProperty("昵称")
    @TableField(exist = false)
    private String nickName;

    /**
     * 年龄区间
     */
    @Excel(name = "年龄区间")
    @ApiModelProperty("年龄区间")
    @TableField(exist = false)
    private Integer ageRange;

    /**
     * 听力图
     */
    @TableField(exist = false)
    private List<HearingImg> hearingImgList;
    /* ---------------------非数据库字段 */

}
